package com.demo.designpattern.observer;

/**
 * Created by hunter
 *
 * @Description 学生-观察者
 */
public class Student implements Observer {

    private String name;

    Student(String name) {
        this.name = name;
    }

    @Override
    public void doNotify() {
        System.out.println(name + "观察到了动作");
    }
}
